﻿<%@ Page Title="" Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true" CodeFile="SENAC2.aspx.cs" Inherits="_SENAC2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        body {font: 12px Tahoma, Arial;}
        .style1 {width: 91px;}
        input[type=text], select {padding: 2px;}
        .tabela td, th {padding: 3px;}
    </style>                
        
        
        
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width:500px;" class="tabela">
        <tr>
            <td align="right" class="style1">
                <strong>CPF:</strong></td>
            <td>
    
        <asp:TextBox ID="txtCPF" runat="server" MaxLength="11"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" class="style1">
                <strong>Curso:</strong></td>
            <td>
                        <asp:DropDownList runat="server" AppendDataBoundItems="True" 
                            DataTextField="Curso" DataValueField="Codigo" 
                    ValidationGroup="gInserir" DataSourceID="dsCursos" ID="ddCursos"><asp:ListItem></asp:ListItem>
</asp:DropDownList>

                                    <asp:SqlDataSource runat="server" 
                    ConnectionString="<%$ ConnectionStrings:conexao_intranet_ler %>" 
                    ProviderName="<%$ ConnectionStrings:conexao_intranet_ler.ProviderName %>" 
                    SelectCommand="SELECT (Cast(CodCurso as varchar)+&#39;;&#39;+Cast(CodCategoria as varchar)) as Codigo, Curso FROM CamaraCursos ORDER BY Curso" 
                    ID="dsCursos"></asp:SqlDataSource>

                                </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td>
    
        <asp:Button ID="btnProcessar" runat="server" onclick="btnProcessar_Click" 
            Text="Processa inscrito" />
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td>
                <asp:Label ID="lblMensagem" runat="server" EnableViewState="False" 
                    ForeColor="Blue"></asp:Label>
                <asp:RequiredFieldValidator ID="RV1" runat="server" ControlToValidate="txtCPF" 
                    Display="None" ErrorMessage="Informe o CPF do candidato"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CV1" runat="server" ControlToValidate="txtCPF" 
                    Display="None" ErrorMessage="O CPF deve conter apenas números" Type="Double"></asp:CompareValidator>
                <asp:ValidationSummary ID="VS1" runat="server" ShowMessageBox="True" 
                    ShowSummary="False" />
            </td>
        </tr>
    </table>
</asp:Content>

